package nuaa.util;

import nuaa.domain.Administrator;
import nuaa.domain.OrdinaryUser;
import org.aspectj.weaver.ast.Or;

/**
 * 关于用于的一些操作
 */
public class UtilUser {

    private static OrdinaryUser user;
    private static Administrator admin;
    /**
     * 设置
     * @param ordinaryUser
     */
    public static void setUser(OrdinaryUser ordinaryUser){
        user=ordinaryUser;
    }

    /**
     * 获取
     */
    public static OrdinaryUser getUser(){
        return user;
    }

    public static Administrator getAdmin() {
        return admin;
    }

    public static void setAdmin(Administrator admin) {
        UtilUser.admin = admin;
    }
}
